<?php /* Smarty version Smarty-3.0.7, created on 2014-11-27 16:50:46
         compiled from "E:/project/runtime/development/lab/tryPHP/app_x000/view\route.html" */ ?>
<?php /*%%SmartyHeaderCode:49705476e5e65a1264-27253300%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a4e0b578044ea09d8bb62ff71a89f21c3efc77b2' => 
    array (
      0 => 'E:/project/runtime/development/lab/tryPHP/app_x000/view\\route.html',
      1 => 1417078245,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '49705476e5e65a1264-27253300',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<strong>一、常用形式。</strong>
<br/>
1.默认应用但指定控制器。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":news");?>

<br/>
2.默认应用但指定控制器并方法。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":news::list");?>

<br/>
3.默认应用指定控制器并模式。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":capcha-exec");?>

<br/>
4.默认应用指定控制器、模式、方法。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":capcha-class::make");?>

<br/>
5.默认应用但指定控制器、方法、参数并修正参数。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":news::list","class:9|type:hot|price_max:3000|price_min:5000","class:19|type:shot");?>

<br/>
6.当前应用并控制器、模式、方法。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink("__SELF__");?>

<br/>
7.当前应用并控制器、模式、方法、参数及修正参数。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink("__SELF__","class:9|type:hot|price_max:3000|price_min:5000","class:19|type:shot");?>

<br/>


<br/><br/><br/>
<strong>二、不常用形式。</strong>
<br/>
1.默认应用及控制器并加上参数及修正参数。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink("__DEFAULT__","class:9|type:hot|price_max:3000|price_min:5000","class:19|type:shot");?>

<br/>
2.指定应用和控制器并加参数及修正参数。
<br/>
<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink("x009","news::list","class:9|type:hot|price_max:3000|price_min:5000","class:19|type:shot");?>

<br/>


<br/><br/><br/>
<strong>三、动态数据形式。</strong>
<br/>
<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value['Rows']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
    <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['id'], null, null);?>
    <?php $_smarty_tpl->tpl_vars['arguments'] = new Smarty_variable(Route::ArgumentsToString($_smarty_tpl->getVariable('data')->value['Parameters']), null, null);?>
    链接：<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":news::info","id:".($_smarty_tpl->getVariable('id')->value)."|".($_smarty_tpl->getVariable('arguments')->value));?>

    (<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
,<?php echo $_smarty_tpl->tpl_vars['item']->value['content'];?>
)
    <br/>
<?php }} ?>
<br/>